class CreateAllegati < ActiveRecord::Migration
  def self.up
    create_table :allegati do |t|
    t.string     "name"
    t.string     "file_allegato_file_name"
    t.string     "file_allegato_content_type"
    t.integer    "file_allegato_file_size"
    t.datetime   "file_allegato_updated_at"
    #
    t.integer  "created_by"
    t.integer  "updated_by"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.datetime "deleted_at"
    #
    t.references :allegato_ref, :polymorphic => true
    t.timestamps
    end
  end

  def self.down
    drop_table :allegati
  end
end
